package electronic.registration.bo;

import javax.persistence.*;

/**
 * User: Egor
 * Date: 10.11.11
 */
@Entity
@NamedQueries({
        @NamedQuery(name = Doctor.GET_ALL_DOCTORS, query = "select d from Doctor d"),
        @NamedQuery(name = Doctor.GET_DOCTOR_BY_NAME, query = "select d from Doctor d where d.fullName like ?")
})
public class Doctor {

    public static final String GET_ALL_DOCTORS = "GET_ALL_DOCTORS";
    public static final String GET_DOCTOR_BY_NAME = "GET_DOCTOR_BY_NAME";

    @Id
    @GeneratedValue
    private Long id;

    private String fullName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
}
